package jvm;

public class TestDemo {
    public static void main(String[] args) {
        testAllocation();
    }

    public static void testAllocation(){
        byte a1[],a2[],a3[],a4[],a5[];
        a1=new byte[2 * 1024*1024]; //2M
        a2=new byte[2 * 1024*1024];// 2M
        a3=new byte[2 * 1024*1024];//2M
        a4=new byte[4 * 1024*1024]; //4M出现一次Minor GC
        a5=new byte[4 * 1024*1024]; //4M出现一次Minor GC
    }
}
